import instance from '../utils/request'

// 简历查询
export const getOnlineResume = () => {
    return instance({
        url: '/resume/select',
        method: 'GET',
    })
}

//更新简历
export const updateOnlineResume = (newData) => {
    return instance({
        url: `/resume/update`,
        method: "PUT",
        data: newData,
    });
}

//新增简历
export const addOnlineResume = (newData) => {
    return instance({
        url: `/resume/add`,
        method: "POST",
        data: newData
    });
}

//生成简历pdf
export const generate = (newData) => {
    return instance({
        url: `/resume/generate`,
        method: "POST",
        data: newData
    });
}